package com.itheima.mfinal;

public class MyFamily {
    final String FIRST_NAME = "郑";

    final String SEX;

    public MyFamily(String sex) {
        SEX = sex;
    }

    public MyFamily() {
        SEX = "男";
    }
}

//测试类
class FamilyTest {
    public static void main(String[] args) {
        MyFamily family = new MyFamily("男");
        System.out.println(family.SEX);

        MyFamily family1 = new MyFamily("女");
        System.out.println(family1.SEX);
    }
}
